﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_Toollist.aspx.cs" Inherits="Web.admin_Toollist" %>
<%@ Register Assembly="Control" Namespace="Com.Control" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>用品列表页</title>
      <link href="css/Page.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
          <table style="border: 1px solid #9abddd;" border="0" cellpadding="0"
            cellspacing="0" width="98%">
            <tr>
                <td class="TitleBar" colspan="6" align="center">
                   用品列表
                </td>
            </tr>
            <tr>
            <td class="Pager" colspan="5" style=" text-align:left;  padding-left:20px;  ">
            名称：
             
                <asp:TextBox ID="txtNameS" runat="server"></asp:TextBox>
                <asp:DropDownList ID="S_where" runat="server">
                <asp:ListItem Value="-1" Selected="True" >请选择</asp:ListItem>
                <asp:ListItem Value="0"  >现有库存</asp:ListItem>
                <asp:ListItem Value="1" >累计库存</asp:ListItem>
                <asp:ListItem Value="2" >入库时间</asp:ListItem>
                <asp:ListItem Value="3" >更新时间</asp:ListItem>
                
                </asp:DropDownList>
                
                <asp:DropDownList ID="paixu" runat="server">
                <asp:ListItem Value="-1" Selected="True" >请选择</asp:ListItem>
                <asp:ListItem Value="DESC"  >&darr;</asp:ListItem>
                 <asp:ListItem Value="ASC">&uarr;</asp:ListItem>
                </asp:DropDownList>
                
                <asp:Button ID="btn_search" runat="server" Text="查找" 
                    onclick="btn_search_Click" />
            </td>
                <td class="Pager"  style=" text-align:right;  padding-right:20px; ">
                    <span style=" display:none;"> <asp:Button ID="btn_input" runat="server" Text="导入"  onclick="btn_input_Click" /></span>
                    <asp:Button ID="btn_addtype" runat="server" Text="添加类别" 
                        onclick="btn_addtype_Click" />
                <span style=" display:none;"> <asp:Button runat="server" ID="btn_add" Text="入库" onclick="btn_add_Click"  /></span>
                </td>
                 
            </tr>
            <tr>
                <td class="MenuItem" align="center">
                   名称
                </td>
                  <td class="MenuItem" align="center">
                   现有库存数
                </td>
                 <td class="MenuItem" align="center">
                   累计库存数
                </td>
                 <td class="MenuItem" align="center">
                   入库时间
                </td>
                
                  <td class="MenuItem" align="center">
                    更新时间
                </td>
                <td class="MenuItemRight" align="center">
                    操作
                </td>
            </tr>
            <asp:Repeater ID="repeater" runat="server" onitemcommand="repeater_ItemCommand" >
                <ItemTemplate>
                    <tr style='background-color:<%#(Container.ItemIndex%2==0)?"write":"#f5f5f5;"%>'>
                        <td class="RecordItem" style="text-align:center;  ">
                            &nbsp;<span style="color:#000;"><%#Eval("TName")%></b></span>
                        </td>
                        <td class="RecordItem" style="text-align:center;  ">
                            &nbsp;<span style="color:#000;"><%#Eval("TNums")%><%#Eval("unit")%></b></span>
                        </td>
                        
                        <td class="RecordItem" style="text-align:center;  ">
                            &nbsp;<span style="color:#000;"><%#Eval("kuncun")%><%#Eval("unit")%></b></span>
                        </td>
                        
                        
                          <td class="RecordItem" style="text-align:center;  ">
                            &nbsp;<span style="color:#000;"><%#Eval("I_dateTime")%></b></span>
                        </td>
                       
                          <td class="RecordItem" style="text-align: center;  ">
                            &nbsp;<%#Eval("U_dateTime")%>
                        </td>
                        <td class="RecordItemRight" align="center" >
                         <a class="Link" href="admin_ToolsAdd.aspx?id=<%#Eval("Id")%>" >入库</a>
                         <a class="Link" href="admin_Toolsedit.aspx?id=<%#Eval("Id")%>" style=" display:none">修改</a>
                     <span style=" display:none;">  <asp:LinkButton runat="server"  ID="lkb"  CommandArgument='<%#Eval("id")%>' CommandName="del" Text="删除" OnClientClick= "return   confirm( '您确认删除该记录吗? '); " style=" font-size:12px;" ></asp:LinkButton></span>
                          
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <tr>
                <td class="Pager" colspan="6" style="padding-right: 10px; text-align:center;">
                    <cc1:MyPageBar ID="MyPageBar1" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
